﻿namespace CV.Dal.Mongo.Impl
{
    using CV.Dal.Mongo.Tools;
    using CV.Entities.Dto;
    using CV.Interfaces.Dal;
    using MongoDB.Bson.Serialization;

    public class CountryAO : BaseAO<Country, string>, ICountryAO
    {
        public CountryAO(CVMongoClient client)
            : base(client, "CountryCode")
        {
        }

        protected override void MapEntity(BsonClassMap<Country> cm)
        {
            cm.MapIdProperty(x => x.Id);
        }
    }
}
